package com.feather.common.pojo;

import java.util.HashMap;
import java.util.Map;

import com.feather.common.pojo.PojoConfiguration;

/**
 * @author flogyin
 */
public class PojoFactory {
	private static HashMap<String, PojoConfiguration>	CONFIG_MAP	= new HashMap<String, PojoConfiguration>();

	private PojoFactory() {
	}

	public static PojoConfiguration getPojoConfiguration() {
		String currCL = String.valueOf(Thread.currentThread().getContextClassLoader().hashCode());
		return (PojoConfiguration) CONFIG_MAP.get(currCL);
	}

	public static Map<String, PojoConfiguration> getConfigMap() {
		return CONFIG_MAP;
	}
}
